<!-- 顶部导航栏 start -->
<div class="navbar  navbar-static-top">
	<div class="navbar-inner">
		<a class="brand" href="/Web/Index/index.html">{:C('Site.Title')}</a>
		<ul class="nav">
			<li class="<if condition=" CONTROLLER_NAME eq 'Index' ">active</if>">
				<a href="{:U('Index/index')}">首页</a>
			</li>
			<li class="dropdown <if condition=" CONTROLLER_NAME eq 'Customer' ">active</if>">
				<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">客户 <span class="caret"></span></a>
				<ul class="dropdown-menu">
					<li>
						<a href="{:U('Customer/index')}">客户库</a>
					</li>
					<li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Customer/index',array('limit'=>'personal'))}">我的客户</a>
					</li>
					<li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Service/templet')}">客户模板</a>
					</li>
				</ul>
			</li>
			<li class="dropdown <if condition=" CONTROLLER_NAME eq 'Service' ">active</if>">
				<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">服务 <span class="caret"></span></a>
				<ul class="dropdown-menu">
					<li>
						<a href="{:U('Service/notice')}">最新公告</a>
					</li>
					<li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Service/index')}">项目库</a>
					</li>
					<!-- <li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Service/index',array('display'=>'invisible'))}">非常规项目</a>
					</li> -->
					<li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Service/result')}">立项名单</a>
					</li>
					<li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Service/success')}">成功案例</a>
					</li>
					
				</ul>
			</li>
			<li class="dropdown <if condition=" CONTROLLER_NAME eq 'Order' ">active</if>">
				<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">合同 <span class="caret"></span></a>
				<ul class="dropdown-menu">
					<li>
						<a href="{:U('Order/index')}">合同库</a>
					</li>
					<li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Order/index',array('limit'=>'personal'))}">我的合同</a>
					</li>
					<if condition="$ThisUser['role'] gt 2">
						<li role="separator" class="divider"></li>
						<li>
							<a href="{:U('Service/order_service')}">服务库</a>
						</li>
					</if>
					<li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Order/order_service')}">我的服务</a>
					</li>
				</ul>
			</li>
			<li class="<if condition=" CONTROLLER_NAME eq 'Todo' ">active</if>">
				<a href="{:U('Todo/index')}">备忘</a>
			</li>
			<li class="<if condition=" CONTROLLER_NAME eq 'Report' ">active</if>">
				<a href="{:U('Report/index')}">日报</a>
			</li>
			<li class="dropdown <if condition=" CONTROLLER_NAME eq 'Account' or CONTROLLER_NAME eq 'Auth' ">active</if>">
				<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">管理 <span class="caret"></span></a>
				<ul class="dropdown-menu">
					<if condition="$ThisUser['role'] gt 3">
						<li>
							<a href="{:U('Account/index')}">账户管理</a>
						</li>
						<li role="separator" class="divider"></li>
						<li>
							<a href="{:U('Auth/index',array('display'=>'manage','uid'=>$ThisUser['id']))}">授权管理</a>
						</li>
						<li role="separator" class="divider"></li>
					</if>
					<li>
						<a href="{:U('Account/edit',array('display'=>'set','id'=>$ThisUser['id']))}">我的账户</a>
					</li>
					<li role="separator" class="divider"></li>
					<li>
						<a href="{:U('Auth/index',array('display'=>'personal','uid'=>$ThisUser['id']))}">我的授权</a>
					</li>
				</ul>
			</li>
			<li>
				<a href="javascript:logout();">退出</a>
			</li>
		</ul>
		<form class="navbar-search pull-left" onsubmit="return false">
			<input type="text" class="search-query" placeholder="搜索">
		</form>
	</div>
</div>
<!-- 顶部导航栏 end -->